package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

import java.util.List;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDto
     */
    void addEmployee(EmployeeDTO employeeDto);


    /**
     *员工分页查询
     */
    PageResult page(EmployeePageQueryDTO employeePageQueryDTO);


    /**
     * 启动禁用员工（修改员工）
     */
    void onoroff(Integer status,long id);

    /**
     * 查询回显
     */
    Employee getByid(long id);

    /**
     * 编辑员工
     */
    void update(EmployeeDTO employeeDTO);

    void updatepassword(PasswordEditDTO passwordEditDTO);
}
